import { View } from '@tarojs/components';
import React from 'react';
import DefaultNavBar from '../../StandNavBar/DefaultNavBar';

const TitleNavBar = ({ onDbClick, position, title, ...rest }) => {
  return (
    <View>
      <DefaultNavBar
        {...{
          position,
          title,
          onTitleClick: onDbClick,
          ...rest,
        }}
      />
    </View>
  );
};

export default TitleNavBar;
